package com.example.yjhadmin.service;

import com.example.common.vo.Result;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yc.yjh.entity.Statistics;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "yjh-match")
@RequestMapping("/yjh/statistics")
public interface StatisticFeign {
    @RequestMapping("selectAllStatistics")
    PageInfo<Statistics> selectAllStatistics(@RequestParam int current);
    @RequestMapping("selectTotal")
    Long selectTotal();
    @RequestMapping("addStatistic")
    Result addStatistic(@RequestBody Statistics statistics);
}
